<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="conversation.css" rel="STYLESHEET" type="text/css">
<title>Edit Dialogue Act Scheme</title>
</head>
<body>
<!--        Header         -->
<jsp:include page="scripts/headerEdit.jsp" >
    <jsp:param name="title" value="Edit Adjacency" />
</jsp:include>
<div class="list">
<form:form>
<table>
	<tr>
		<th align="left">Adjacency</th>
		<th align="left">Description</th>
	</tr>
	<tr>
		<td><form:input path="label" size="12" maxlength="16" /></td>
		<td><form:input path="description" size="30" maxlength="128" /></td>
	</tr>
</table>

<p align="center"><input name="save" value="Save" type="submit">
<input name="cancel" type="button" value="Cancel"
	onClick="javascript:window.location='adjlist.html'"></p>
</form:form>
</div>
<div class="list">
<h3>Current Adjacencies</h3>
<table>
	<tr>
	  <th align="left">ID</th>	
		<th align="left">Adjacency</th>
		<th align="left">Description</th>
	</tr>
	<c:forEach items="${adjacencies}" var="adj">
		<tr>
		  <td><c:out value="${adj.adjacencyId}" /></td>
			<td><c:out value="${adj.label}" /></td>
			<td><c:out value="${adj.description}" /></td>
		</tr>
	</c:forEach>
</table>
</div>
</body>
</html>

